<ul class="model_actions">
    <?php
    $i = 0;
    foreach ($items as $caption => $url):
        $i++;
        $current = (Yii::app()->request->getParam('type', 'all') == $url['type']) ? 'current' : '';
    ?>
    <li class="<?php if ($i == 1) echo 'first ' ?>">
        <?php echo CHtml::link($caption, $url, array('class' => $current)); ?>
    </li>
    <?php endforeach; ?>
</ul>